<?php
require_once $_SERVER['DOCUMENT_ROOT'].'/const/Error.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/utils/Str.php';
?>

<SCRIPT type="text/javascript" src="/view/javascripts/form.js"></SCRIPT>

	<?php
	$today = getdate();
	?>
	
 <DIV class="block">
	<H1> Перенос процессов</H1>
    <table>
		<TR>
			<TD><LABEL for = "year">Год источник</LABEL></TD>
            <TD><LABEL for = "year2">Требуемый год:</LABEL></TD>
        </TR>
        <tr>
			<TD>
            	<FORM action="/editing/indicator/copy.html" method="post" id="copyprocess">
					<select id="year" name="year" >
						<?php 
							for($i=$today[year]-2; $i<=$today[year]+2;$i++){		
								echo "<option value=".$i;
								if ($i==$year){
									echo " selected ";
								}
								echo ">".$i."</option>";							
							}
						?>
					</select>
			</TD>
            <TD>
				<select id="year2" name="year2" >
						<?php 
							for($i=$today[year]; $i<=$today[year]+2;$i++){		
								echo "<option value=".$i;
								if ($i==$year){
									echo " selected ";
								}
								echo ">".$i."</option>";							
							}
						?>
				</select>
          </form>
				</TD>
			</TR>
		</TABLE>
 </div>
 <DIV class="block">     
	<BUTTON type="button" onclick="submitForm('copyprocess')">
		<IMG src="/view/img/button-save.png" alt="">
		<SPAN>перенести</SPAN>
	</BUTTON>    
 </div>
 
